package com.bw.service;

import com.bw.entity.TbAdm;
import com.bw.entity.TbUserTem;
import com.bw.entity.vo.Admvo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
@FeignClient("port-server")
public interface AdmService {
    //用户管理列表
    @GetMapping("admlist")
    List<Admvo> admlist(@RequestParam("mohu") String mohu);
    //批量删除
    @PostMapping("del")
    String[] del(@RequestParam("id") String id);
    //添加
    @PostMapping("admadd")
    TbUserTem admadd(@RequestBody TbAdm adm);
    //修改
    @PostMapping("admupdate")
    TbAdm admupdate(@RequestBody TbAdm adm);
    //回显
    @GetMapping("findByAdmid")
    TbAdm findByAdmid(@RequestParam("id")int id);

}
